namespace Framework.StringSplit.Processors
{
    internal class SplitAsStringArrayProcessor : BaseStringSplitProcessor<string[]>
    {
        public override string[] Process(StringSplitHandler parameters, string text)
        {
            return parameters.IsCharSeperator
                       ? Split(text, parameters.SeperatorChar, parameters.Count, parameters.RemoveEmptyEntries, parameters.Trim)
                       : Split(text, parameters.SeperatorString, parameters.Count, parameters.RemoveEmptyEntries, parameters.Trim);
        }
    }
}